﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Rss;
//using GmailAPI;
using Microsoft.Practices.EnterpriseLibrary.Logging;

public partial class test : System.Web.UI.Page
{
   protected void Page_Load(object sender, EventArgs e)
   {
      if (!Request.IsLocal)
         throw new Exception("wa");

      LogEntry logEntry = new LogEntry();
      logEntry.Categories.Add("General");

      logEntry.TimeStamp = DateTime.Now; ;
      logEntry.Categories.Add("General");
      logEntry.AppDomainName = "AppDomainName";
      logEntry.ManagedThreadName = "ManagedThreadName";
      logEntry.Message = "Message";
      logEntry.ProcessId = "ProcessId";
      logEntry.ProcessName = "processname";
      logEntry.Title = "title";
      logEntry.Win32ThreadId = "win32threadid";

      Logger.Write(logEntry);
   }
}
